package com.deng.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @Author 邓小熙
 * @Date 2022/5/2 0:20
 * @Version 1.0
 *       用户完善信息
 */
public class UserDetail {
    /**
     * 自增主键
     */
    private int detail_id;
    /**
     * 职位 如:学生
     */
    private String position;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthday;
    /**
     * 住址
     */
    private String address;
    /**
     * 简述
     */
    private String sketch;
    /**
     * 外键
     */
    private int user_id;

    @Override
    public String toString() {
        return "UserDetail{" +
                "detail_id=" + detail_id +
                ", position='" + position + '\'' +
                ", birthday=" + birthday +
                ", address='" + address + '\'' +
                ", sketch='" + sketch + '\'' +
                ", user_id=" + user_id +
                '}';
    }

    public int getDetail_id() {
        return detail_id;
    }

    public void setDetail_id(int detail_id) {
        this.detail_id = detail_id;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getSketch() {
        return sketch;
    }

    public void setSketch(String sketch) {
        this.sketch = sketch;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }
}
